package day06;

public class array2 {
    public static void main(String[] args) {
        int[] array1,array2;
        array1 = new int[]{1,2,3,4,5};
        array2=array1;
        for (int i=0;i<array2.length;i++){
            array2[i]+=1;
        }
        for (int i=0;i<array1.length;i++){
            System.out.print(array1[i]+"\t");
        }
        System.out.println();
        for (int i=0;i<array2.length;i++){
            System.out.print(array2[i]+"\t");
        }
    }
}
